package org.dashboard.service;

import com.github.pagehelper.PageInfo;
import org.dashboard.bean.AdRole;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public interface AdRoleService {
    int deleteByPrimaryKey(Integer roleId);

    int insert(AdRole record);

    int insertSelective(AdRole record);

    AdRole selectByPrimaryKey(Integer roleId);

    int updateByPrimaryKeySelective(AdRole record);

    int updateByPrimaryKey(AdRole record);


    List<AdRole> selectAdRoles();

    boolean deleteByPrimaryKeys(ArrayList<Integer> roleIds);

    List<AdRole> selectUserAdRoles(Integer userId);

    List<Map<String, Object>> selectUserRoles(Integer userId);

    PageInfo selectAdRolesPaged(String criteria, Integer pageNum, Integer pageSize);
}
